|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Control | Property | Setting | | Index | 1 | | Left | 120 | | TabIndex | 9 | | Top | 480 | | Width | 1200 | | VB.Label | Name | lblPrompt | | Caption | "Label1" | | Height | 300 | | Index | 0 | | Left | 120 | | TabIndex | 8 | | Top | 120 | | Width | 1200 |
|
|
|
|
|
|
Save this new project as PRJSECTEST.VBP and save the form as FRMSECTEST.FRM. |
|
|
|
|
|
|
|
|
Next you need to add code to the form. Listing 21.41 shows the code for the general declarations area and the Form_Load event. |
|
|
|
|
|
|
|
|
Listing 21.41. Coding the declarations and the Form_Load event. |
|
|
|
|
|
|
|
|
Option Explicit
'
Dim objUser As Object
Dim objLog As Object
Private Sub Form_Load()
'
SetForm ' set up form
SetLog ' set up log stuff
SetUser ' set up user stuff
'
End Sub |
|
|
|
|
|
|
|
|
Now add the code for the three support routines called from Form_Load. The SetForm routine binds the input controls to the data fields, sets the form captions, and fills the data control with live records (see Listing 21.42). |
|
|
|
|
|